/**
 * 双屏pos机-产品销售(列表)
 * ml
 */
module.exports = function ($scope, $modal, $state, $resource, toaster) {

    $scope.user = {};
    $scope.backMenu = function(){
        $state.go('app.viewSystemMenuList', {});
    }
    $scope.totalMoney = 0;
    $scope.backMoney = 0;
    $scope.saleNum = 0;
    $scope.backNum = 0;
    $scope.validateNum = 0;
    $scope.saleList = [];
    $scope.saleList = [
        {
            order_code: 0,
            buyNum: 13,
            usedNum: 65,
            name: '沈阳怪坡虎园成人票',
            back: 63,
            price: 10,
            create_time: '2017-06-16'
        },
        {
            order_code: 0,
            buyNum: 13,
            usedNum: 65,
            name: '沈阳怪坡虎园成人票',
            back: 63,
            price: 651,
            create_time: '2017-06-16'
        },
        {
            order_code: 0,
            buyNum: 13,
            usedNum: 65,
            name: '沈阳怪坡虎园成人票',
            back: 63,
            price: 651,
            create_time: '2017-06-16'
        },
        {
            order_code: 0,
            buyNum: 13,
            usedNum: 65,
            name: '沈阳怪坡虎园成人票',
            back: 63,
            price: 651,
            create_time: '2017-06-16'
        },
        {
            order_code: 0,
            buyNum: 13,
            usedNum: 65,
            name: '沈阳怪坡虎园成人票',
            back: 63,
            price: 651,
            create_time: '2017-06-16'
        },
        {
            order_code: 0,
            buyNum: 13,
            usedNum: 65,
            name: '沈阳怪坡虎园成人票',
            back: 63,
            price: 651,
            create_time: '2017-06-16'
        },
        {
            order_code: 0,
            buyNum: 13,
            usedNum: 65,
            name: '沈阳怪坡虎园成人票',
            back: 63,
            price: 651,
            create_time: '2017-06-16'
        }
    ];
    $scope.$watch('saleList', function(value){
    }, true);
    
};